<?php

use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\widgets\ActiveForm;

$this->title = '新增用户';
$this->params['breadcrumbs'][] = ['label' => '用户信息列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="admin-create">

    <div class="admin-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'adm_username')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'adm_password')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model,'role_id')->dropDownList(ArrayHelper::map($role,'id', 'role_name'))?>
    
    <div class="form-group">
        <?= Html::submitButton('新建' , ['class' => 'btn btn-success' ]) ?>
    </div>

    <?php ActiveForm::end(); ?>

    </div>



</div>
